.class public Lcom/waiqin365/lightapp/im/activity/ContextMenu;
.super Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;


# instance fields
.field private a:I


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public copy(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x1

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->a:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->finish()V

    return-void
.end method

.method public delete(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x2

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->a:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->finish()V

    return-void
.end method

.method public download(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x5

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->a:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->finish()V

    return-void
.end method

.method public forward(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x3

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "position"

    iget v3, p0, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->a:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->finish()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v2, -0x1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/im/activity/IMBaseActivity;->onCreate(Landroid/os/Bundle;)V

    sget-object v0, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "type"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->TXT:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_1

    const v0, 0x7f030156

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setContentView(I)V

    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "position"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->a:I

    return-void

    :cond_1
    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->LOCATION:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_2

    const v0, 0x7f030155

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setContentView(I)V

    goto :goto_0

    :cond_2
    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->IMAGE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_3

    const v0, 0x7f030153

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setContentView(I)V

    goto :goto_0

    :cond_3
    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->VOICE:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_4

    const v0, 0x7f030158

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setContentView(I)V

    goto :goto_0

    :cond_4
    sget-object v1, Lcom/hyphenate/chat/EMMessage$Type;->VIDEO:Lcom/hyphenate/chat/EMMessage$Type;

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMMessage$Type;->ordinal()I

    move-result v1

    if-ne v0, v1, :cond_0

    const v0, 0x7f030157

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->setContentView(I)V

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/im/activity/ContextMenu;->finish()V

    const/4 v0, 0x1

    return v0
.end method
